<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习1</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
    <script>
        var arr = [
            { name: '张三', age: 18 },
            { name: '李四', age: 28 },
            { name: '王五', age: 38 }
        ]
        for (const user of arr) {
            document.write("客户名字是", user, "<br>")
        }
        //客户名字是[object Object]
        //客户名字是[object Object]
        //客户名字是[object Object]
    </script>
</body>

</html>